package org.shiro.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * base_menu
 *
 * @author
 */
@Data
@ApiModel(value = "权限菜单")
public class Permission implements Serializable {
  private Long id;

  @ApiModelProperty(value = "权限名称")
  private String name;

  @ApiModelProperty(value = "父级Id")
  private Long parentId;

  @ApiModelProperty(value = "权限字符")
  private String perms;
  /** 1 是 0 否 */
  @ApiModelProperty(value = "是否叶子节点")
  private Boolean level;

  /** 1 正常 0 禁用 */
  @ApiModelProperty(value = "权限状态")
  private Integer status;

  @ApiModelProperty(value = "页面跳转路径")
  private String url;

  @ApiModelProperty(value = "类型")
  private String type;

  private Set<Permission> child = new HashSet<>();

  private static final long serialVersionUID = 1L;
}
